<?php

class LoginForm extends BaseTagForm
{
  public function configure()
  {
    $this->setWidgets(array(
      'email' => new sfWidgetFormInput(),
      'password' => new sfWidgetFormInputPassword()
    ));

    $this->widgetSchema->setLabels(array(
      'email'  => 'E-Mail',
      'password'  => 'Password',
    ));

    $this->setValidators(array(
      'email'    => new sfValidatorString(array('required' => true), array('required' => '↓ Es necesario indicar el e-mail. ↓')),
      'password' => new sfValidatorString(array('required' => true), array('required' => '↓ Es necesario indicar el password. ↓'))
    ));
  }
}
